package cn.iot.controller.sys;

import cn.iot.common.dto.ResultMsg;
import cn.iot.sys.service.SysTeacherService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/sys/teacher")
public class SysTeacherController {
    @Autowired
    private SysTeacherService sysTeacherService;
    private Logger logger = LoggerFactory.getLogger(getClass());

    @PostMapping("getSysTeacherList")
    public ResultMsg getSysTeacherList(@RequestParam Map<String,Object> map){
        logger.info("SysTeacherController getSysTeacherList map{}",map);
        ResultMsg msg = sysTeacherService.getSysTeacherList(map);
        logger.debug("SysTeacherController getSysTeacherList msg{}",msg);
        return msg;
    }
}
